package com.yeyks.other.dal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据库地址和CN地址关系表
 * </p>
 *
 * @author yun
 * @since 2020-01-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="AddressDbCn对象", description="数据库地址和CN地址关系表")
public class AddressDbCn implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "唯一主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "地址唯一code")
    @TableField("div_code")
    private String divCode;

    @ApiModelProperty(value = "cn地址code")
    @TableField("div_code_cn")
    private String divCodeCn;

    @ApiModelProperty(value = "对应code的名字（省）")
    @TableField("name")
    private String name;


    public static final String ID = "id";

    public static final String DIV_CODE = "div_code";

    public static final String DIV_CODE_CN = "div_code_cn";

    public static final String NAME = "name";

}
